export const searchForm = [
	{value: '1', label: '托盘条码'},
]

export const itemForm = [
	{id: 'spuNo', name: '物料编号'},
	{id: 'spuName', name: '物料名称'},
	{id: 'planQty', name: '计划件数'},
	{id: 'bindQty', name: '已收件数'},
]

export const rules = {
	// 对name字段进行必填验证
	// contNo: {
	// 	// name 字段的校验规则
	// 	rules:[
	// 		{
	// 			required: true,
	// 			errorMessage: '请输入托盘条码',
	// 		},
	// 	],
	// 	validateTrigger:'submit'
	// },
	stationNo: {
					rules: [{
						required: true,
						errorMessage: '请选择站台',
					}],
					validateTrigger: 'submit'
				},
	num: {
		// num 字段的校验规则
		rules:[
			{
				required: true,
				errorMessage: '请输入收货数量',
			},
			{
				minLength: 1,
				maxLength: 6,
				errorMessage: '请输入正确的数量',
			}
		],
		validateTrigger:'submit'
	},
	spuNo: {
		// name 字段的校验规则
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '',
			},
		],
		validateTrigger:'submit'
	},
	spuWeight: {
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '',
			},
		],
		validateTrigger:'submit'
	}
}